is created but left paused, so it is necessary to destroy the domain afterwards,
whether the test succeeded or failed.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
FAIL("Bug #331: Started a DomU with write access to a rw mounted block device")
except DomainError, e:
s, o = traceCommand("umount mnt")
+
+domain.destroy()
FAIL("Unable to start domain")
try:
- dom2.start()
- dom1.destroy()
- FAIL("Bug #331: Started a DomU with write access to an in-use block device")
-except DomainError, e:
+ try:
+ dom2.start()
+ FAIL("Bug #331: Started a DomU with write access to an in-use block device")
+ except DomainError, e:
+ pass
+finally:
dom1.destroy()
+ dom2.destroy()